package com.jianguo.user.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 就诊人对象 pz_user_patient
 *
 * @author xjj
 * @date 2024-03-21
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzUserPatient extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 姓名 */
    @Excel(name = "姓名")
    private String name;
    /** 身份证号 */
    @Excel(name = "身份证号")
    private String number;
    /** 出生年月日 */
    @Excel(name = "出生年月日")
    private String birth;
    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;
    /** 性别 */
    @Excel(name = "性别")
    private Long gender;
    /** 基础病 */
    @Excel(name = "基础病")
    private String backgroundDisease;
    /** 紧急联系人 */
    @Excel(name = "紧急联系人")
    private String emergencyContactPhone;
    /** 客户id */
    @Excel(name = "客户id")
    private String userId;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("number", getNumber())
            .append("birth", getBirth())
            .append("phone", getPhone())
            .append("gender", getGender())
            .append("backgroundDisease", getBackgroundDisease())
            .append("emergencyContactPhone", getEmergencyContactPhone())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
        .toString();
    }
}
